package com.buddha.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author mybatis-plus
 * @since 2023-07-06
 */
@Getter
@Setter
  @TableName("role")
@ApiModel(value = "Role对象", description = "")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("角色名称")
      private String name;

      @ApiModelProperty("角色编码")
      private String code;

      @ApiModelProperty("角色说明")
      private String remark;

      @ApiModelProperty("创建时间")
      private LocalDateTime created;

      @ApiModelProperty("上次更新时间")
      private LocalDateTime updated;

      @ApiModelProperty("状态：1（正常），0（禁用）")
      private Integer state;
  @TableField(exist = false)
  private List<Integer> menuIds = new ArrayList<>();
}
